package com.spdb.oa.type;

import java.util.List;

public class ChoiceWFFormElement extends WFFormElement {

	public ChoiceWFFormElement() {
		super();
	}
	static public class Chioce {
		public String value;
		public boolean selected;
		public String content;

		@Override
		public String toString() {
			return "Chioce [value=" + value + ", selected=" + selected + ", content=" + content + "]";
		}

		public Chioce(String value, boolean selected, String content) {
			super();
			this.value = value;
			this.selected = selected;
			this.content = content;
		}
	}
	public ChoiceWFFormElement.Chioce selectedChoice;
	public String defaultChoice;
	public List<ChoiceWFFormElement.Chioce> chioces;
	
	@Override
	public String toString() {
		return "ChoiceWFFormElement [selectedChoice=" + selectedChoice + ", defaultChoice=" + defaultChoice
				+ ", chioces=" + chioces + ", id=" + id + ", name=" + name + ", displayName=" + displayName
				+ ", controlType=" + controlType + ", required=" + required + ", visible=" + visible + ", enabled="
				+ enabled + ", dataType=" + dataType + ", showField=" + showField + "]";
	}

	public ChoiceWFFormElement(Chioce selectedChoice, String defaultChoice, List<Chioce> chioces) {
		super();
		this.selectedChoice = selectedChoice;
		this.defaultChoice = defaultChoice;
		this.chioces = chioces;
	}
	
	
}
